package com.jo.interceptor;

import com.jo.advisor.Advice;

/**
 * 用于适配没有实现MethodInterceptor的Advice
 * @author Jo
 * @date 2018/1/26
 */
public interface AdviseAdapter {

    /**
     * 是否支持适配
     * @param advice
     * @return
     */
    boolean support(Advice advice);

    /**
     * 转换成MethodInterceptor
     * @param advice
     * @return
     */
    MethodInterceptor convert(Advice advice);
}
